﻿using System.Reflection;
using rpc_service.util;

namespace rpc_service.core.support.assembly.roslyn;

public class RoslynBaseInfo
{
    protected Type getTargetType(string targetType)
    {
        Type type = MethodUtil.FindType(targetType);
        return type;
    }
    
    protected MethodInfo getTargetMethod(string targetType, string targetMethod)
    {
        Type type = MethodUtil.FindType(targetType);
        MethodInfo methodInfo = type.GetMethod(targetMethod)!;
        return methodInfo;
    }
}